<?php

/**
 * TOP API: taobao.subuser.duty.add request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_SubuserDutyAddRequest {
	/**
	 * 职务级别
	 **/
	private $dutyLevel;

	/**
	 * 职务名称
	 **/
	private $dutyName;

	/**
	 * 主账号用户名
	 **/
	private $userNick;

	private $apiParas = array();

	public function setDutyLevel($dutyLevel) {
		$this->dutyLevel = $dutyLevel;
		$this->apiParas["duty_level"] = $dutyLevel;
	}

	public function getDutyLevel() {
		return $this->dutyLevel;
	}

	public function setDutyName($dutyName) {
		$this->dutyName = $dutyName;
		$this->apiParas["duty_name"] = $dutyName;
	}

	public function getDutyName() {
		return $this->dutyName;
	}

	public function setUserNick($userNick) {
		$this->userNick = $userNick;
		$this->apiParas["user_nick"] = $userNick;
	}

	public function getUserNick() {
		return $this->userNick;
	}

	public function getApiMethodName() {
		return "taobao.subuser.duty.add";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->dutyLevel, "dutyLevel");
		Taobao_RequestCheckUtil::checkNotNull($this->dutyName, "dutyName");
		Taobao_RequestCheckUtil::checkNotNull($this->userNick, "userNick");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
